package com.melonlee.wechat_engine.utils;import java.io.IOException;import org.apache.http.HttpResponse;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpClient;import org.apache.http.util.EntityUtils;import org.json.JSONArray;import org.json.JSONObject;public class TestLog {	public static void main(String[] args) throws IOException, Exception {		String url = "http://www.o2oapp.com/Cafe/categorys.html";		HttpGet httpget = new HttpGet(url);		HttpResponse response = new DefaultHttpClient().execute(httpget);		if (response.getStatusLine().getStatusCode() == 200) {			String result = EntityUtils.toString(response.getEntity());			System.out.println(result);			JSONObject jo = new JSONObject(result);			System.out.println(jo.get("status"));			JSONArray list = jo.getJSONArray("res");			System.out.println(((JSONObject) list.get(0)).get("title"));		}	}}